﻿<%@ Control Language="C#" ClassName="AdjustmentDetailsFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataAdjustmentId" runat="server" Text="Adjustment Id:" AssociatedControlID="dataAdjustmentId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAdjustmentId" Text='<%# Bind("AdjustmentId") %>' MaxLength="20"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataAdjustmentId" runat="server" Display="Dynamic" ControlToValidate="dataAdjustmentId" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataDrugId" runat="server" Text="Drug Id:" AssociatedControlID="dataDrugId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataDrugId" Text='<%# Bind("DrugId") %>' MaxLength="20"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataDrugId" runat="server" Display="Dynamic" ControlToValidate="dataDrugId" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataQuantity" runat="server" Text="Quantity:" AssociatedControlID="dataQuantity" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataQuantity" Text='<%# Bind("Quantity") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataQuantity" runat="server" Display="Dynamic" ControlToValidate="dataQuantity" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataQuantity" runat="server" Display="Dynamic" ControlToValidate="dataQuantity" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAdjustQuantity" runat="server" Text="Adjust Quantity:" AssociatedControlID="dataAdjustQuantity" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAdjustQuantity" Text='<%# Bind("AdjustQuantity") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataAdjustQuantity" runat="server" Display="Dynamic" ControlToValidate="dataAdjustQuantity" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataAdjustQuantity" runat="server" Display="Dynamic" ControlToValidate="dataAdjustQuantity" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataFinalQuantity" runat="server" Text="Final Quantity:" AssociatedControlID="dataFinalQuantity" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataFinalQuantity" Text='<%# Bind("FinalQuantity") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataFinalQuantity" runat="server" Display="Dynamic" ControlToValidate="dataFinalQuantity" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataFinalQuantity" runat="server" Display="Dynamic" ControlToValidate="dataFinalQuantity" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataUnitPrice" runat="server" Text="Unit Price:" AssociatedControlID="dataUnitPrice" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataUnitPrice" Text='<%# Bind("UnitPrice") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataUnitPrice" runat="server" Display="Dynamic" ControlToValidate="dataUnitPrice" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegExVal_dataUnitPrice"  runat="server" ControlToValidate="dataUnitPrice" Display="Dynamic" ValidationExpression="^\$?[0-9]+(,[0-9]{3})*(\.[0-9]{2})?$" ErrorMessage="Invalid Value" />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataRemark" runat="server" Text="Remark:" AssociatedControlID="dataRemark" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataRemark" Text='<%# Bind("Remark") %>' MaxLength="250"></asp:TextBox>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


